﻿using System.Collections.Generic;

namespace System
{
    /// <summary>
    /// Generalized extensions class.
    /// </summary>
    public static class Int32Extensions
    {

        /// <summary>
        /// Converts an int to a QueryString parameter with the given name.
        /// </summary>
        /// <param name="value">The value.</param>
        /// <param name="name">The name.</param>
        /// <returns></returns>
        public static KeyValuePair<string, string> ToQueryParameter(this int value, string name)
        {
            return new KeyValuePair<string, string>(name, value.ToString());
        }

    }
}
